<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Js.nue</title>
		<script type="text/javascript" src="../lib/jquery/jquery.js"></script>
		<script type="text/javascript" src="../lib/savvyui.js"></script>
		<script type="text/javascript" src="unit-testing.js"></script>
	</head>
	<body>
		<h1>Js.nue</h1>
		<div id="result">
			<h2>Result</h2>
		</div>
		
		<script type="text/javascript">
		<!--
		Js.debug.enable = true;
		
		var person = {
			name: {
				first: "Mior Muhammad Zaki",
				last: "Mior Khairuddin",
			}
		};
		
		var student = Js.nue(person);
		student.matric = "49070";
			
		Js.util.Assert.isTrue(student.matric, '49070', 'student.matric is set to ' + student.matric); 
		Js.util.Assert.isFalse(person.matric, null, 'person.matric is ' + person.matric);
		Js.util.Assert.isTrue(student.name.first, person.name.first, 'student.name.first inherit person.name.first');
		person.name.first = "Zaki";
		Js.util.Assert.isFalse(student.name.first, person.name.first, 'student.name.first does not equal person.name.first');
		
		-->
		</script>
		
	</body>
</html>